package com.huazhi.wzsnw.mapper;

import com.huazhi.wzsnw.model.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {
    int deleteByPrimaryKey(String tid);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(String tid);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    User selectUserByField(@Param("field") String field, @Param("value") String value);

    User selectUserByTidPassword(@Param("tid") String tid, @Param("password") String password);

    List<String> selectListTidBySearch(@Param("key") String key, @Param("listtid") List<String> userList);

    List<User> findPagingByListTid(@Param("listTid") List<String> listTid, @Param("pageIndex") Integer pageIndex, @Param("pageSize") Integer pageSize);

    List<User> selectUserList();

    List<String> selectTidByUsername(@Param("username") String username);

}